Package com.twilio.video

Types

AudioCapturerContext
Link copied to clipboard
interface AudioCapturerContext
This interface defines the API to be used for writing out captured PCM audio data to the underlying audio subsystem.
AudioCapturerFactory
Link copied to clipboard
typealias AudioCapturerFactory = (AudioCapturerContext, AudioFormat) -> AudioIORunnable

AudioCapturerFactory defines the signature of the factory method to construct a custom capturer implementation. The object constructed must inherit the AudioCapturerContext interface.

AudioIORunnable
Link copied to clipboard
interface AudioIORunnable : Runnable
This interface is to be extended when developers want to override the default audio capturing and playback mechanisms of the NoiseCancellationAudioDevice.
AudioRendererContext
Link copied to clipboard
interface AudioRendererContext
This interface defines the API to be used for read PCM audio data to be played to the user.
AudioRendererFactory
Link copied to clipboard
typealias AudioRendererFactory = (AudioRendererContext, AudioFormat) -> AudioIORunnable

AudioRendererFactory defines the signature of the factory method to construct a custom renderer implementation. The object constructed must inherit the AudioCapturerContext interface.

NoiseCancellationAudioDevice
Link copied to clipboard
class NoiseCancellationAudioDevice(context: Context, capturerFactory: AudioCapturerFactory, rendererFactory: AudioRendererFactory) : AudioDevice, ExternalAudioProcessor
NoiseCancellationAudioDevice is the audio plugin.

Functions

DefaultCapturerFactory
Link copied to clipboard
fun DefaultCapturerFactory(audioContext: AudioCapturerContext, audioFormat: AudioFormat): AudioIORunnable
DefaultCapturerFactory is the default capturer factory method invoked by the NoiseCancellationAudioDevice.
DefaultRendererFactory
Link copied to clipboard
fun DefaultRendererFactory(audioContext: AudioRendererContext, audioFormat: AudioFormat): AudioIORunnable
DefaultRendererFactory is the default renderer factory method invoked by the NoiseCancellationAudioDevice.